package com.novax.ex.activity.open.api;

import com.novax.ex.activity.open.model.response.MallConfigResponse;
import com.novax.ex.common.results.ReturnResult;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.List;

/**
 * Description: 参与费用配置
 *
 * @author Deucalion@novax.email
 * @date 2023/2/21 16:05
 */
// @Tag(name = "一元购-参与费用配置", description = "参与费用配置")
@FeignClient(url = "${remote.activity-service.endpoint}", name = "MallConfigApi", contextId = "MallConfigApi")
public interface MallConfigApi {

    @Operation(summary = "根据币种获取参与费用配置", description = "详情")
    @GetMapping("/v3/public/mall/config/currency/{currency}")
    ReturnResult<MallConfigResponse> getConfigByCurrency(
            @PathVariable String currency,
            @RequestHeader("language") String language);
}
